<?php
return array(
    /*VIEWS*/
    'view_manager' => array(
        'template_path_stack' => array(
            __DIR__ . '/../view',
        ),
        'template_map' => array(
            'layout/grh'        => __DIR__ .'/../view/layout/layout-grh.phtml',
            'layout/ajax'       => __DIR__ .'/../view/layout/layout-ajax.phtml',
            'error/404'         => __DIR__ .'/../view/error/error-404.phtml',
            'error/exception'   => __DIR__ .'/../view/error/error-exception.phtml',
        ),
        'display_not_found_reason' => true,
        'display_exceptions'       => true,
        'doctype'                  => 'HTML5',
        'not_found_template'       => 'error/404',
        'exception_template'       => 'error/exception',
    ),
    
    /*ROUTERS*/
    'router' => array(
        'routes' => array(
            'home' => array(
                'type' => 'Zend\Mvc\Router\Http\Literal',
                'options' => array(
                    'route'    => '/',
                    'defaults' => array(
                        'controller' => 'Application\Controller\Index',
                        'action'     => 'index',
                    ),
                ),
            ),
            // The following is a route to simplify getting started creating
            // new controllers and actions without needing to create a new
            // module. Simply drop new controllers in, and you can access them
            // using the path /application/:controller/:action
            'GRH' => array(
                'type'    => 'Literal',
                'options' => array(
                    'route'    => '/GRH',
                    'defaults' => array(
                        '__NAMESPACE__' => 'GRH\Controller',
                        'controller'    => 'Home',
                        'action'        => 'index',
                    ),
                ),
                'may_terminate' => true,
                'child_routes' => array(
                    'default' => array(
                        'type'    => 'Segment',
                        'options' => array(
                            'route'    => '/[:controller[/:action[/:id]]]',
                            'constraints' => array(
                                'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
                                'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
                                'id'         => '[0-9]+',
                            ),
                            'defaults' => array(
                            ),
                        ),
                    ),
                ),
            ),
        ),
    ),
    
    /*CONTROLLERS*/
    'controllers' => array(
        'invokables' => array(
            'GRH\Controller\Base'           => 'GRH\Controller\BaseController',
            'GRH\Controller\Home'           => 'GRH\Controller\HomeController',
            'GRH\Controller\Periode'        => 'GRH\Controller\PeriodeController',
            'GRH\Controller\Site'           => 'GRH\Controller\SiteController',
            'GRH\Controller\Activite'       => 'GRH\Controller\ActiviteController',
            'GRH\Controller\Profil'         => 'GRH\Controller\ProfilController',
            'GRH\Controller\Poste'          => 'GRH\Controller\PosteController',
            'GRH\Controller\Avantage'       => 'GRH\Controller\AvantageController',
            'GRH\Controller\Transport'      => 'GRH\Controller\TransportController',
            'GRH\Controller\Employe'        => 'GRH\Controller\EmployeController',
            'GRH\Controller\Planning'       => 'GRH\Controller\PlanningController',
        ),
    ),
);